<?php
namespace cosocket\system\server\interfaces;

interface WebSocketInterface
{
    public function run();
    public function initializeServer();
    public function start();
    public function handleRequest($request, $ws);
    public function handleMessage($frame, $ws, $request);
    // public function handlePing($frame, $ws);
    public function handleClose($frame, $ws, $reason = '');
}